﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="msBsc.WebUi.MenuTree" CodeBehind="MenuTree.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>导航菜单</title>
    <meta charset="gbk"><meta name="renderer" content="webkit"><meta name="description" content="欢迎光临优速购商城"/><meta name="viewport" content="width=device-width" /><meta http-equiv="X-UA-Compatible" content="IE=Edge">

 	<script src='/??jqPlugin/js/jquery-1.8.3.min.js,jqPlugin/poshytip/jquery.poshytip.js,jqPlugin/lhgdialog/lhgdialog.js,jqPlugin/js/jQueryForm.js' type='text/javascript'></script>
 	<link href='/themes/SysHt/jqcss.css' rel='stylesheet'  media='all' type='text/css'/>

    <style type="text/css"> 
        body{height:auto;}
    </style> 
    <script type="text/javascript" language="javascript"> 
        function btnDo(sEbtn) {
            GtGrid1Action = sEbtn;
            var opart = GetGtParam("myGrid1");
            if (sEbtn == "mShowMenu") {
                ajaxComm(opart, null, successAjax, null, true);
            }
            else {
                ajaxComm(opart, null, null, null, true);
            }
            GtGrid1Action = "";
        };
        function GetGtParam(jqGridID) {
            var _jsParam = new jsonRow(); 
            _jsParam.AddCell("ID", $("#txtId").val());
            _jsParam.AddCell("ACTION", GtGrid1Action);
            return _jsParam;
        }
        $(window).load(function () {
//            btnDo("mShowMenu");
            var iHeighttem1 = $(document.documentElement).height() - $("#divMenuSrc").offset().top - 20;
            $("#divMenuSrc").height(iHeighttem1);
            $(window).resize(function () {
                var iHeighttem1 = $(document.documentElement).height() - $("#divMenuSrc").offset().top - 20;
                $("#divMenuSrc").height(iHeighttem1);
            });
        });

        function doChildMenuSHOW(sPath, sText, snewwo) {
            if (sPath) {
                if (snewwo == "True") {
                    ShowChildForm(sText, shUrlBase + sPath);
                } else {
                    window.parent.addTabPage(sText, shUrlBase + sPath);
                }
            }
        }

        function SetStyle(sControlId) {
            if ($("#" + sControlId.toString().replace("tab", "panel") + " div.panel_content").length == 1) {
                $("#" + sControlId.toString().replace("tab", "panel") + " div.panel_content").slideToggle();
            }
            else {
                $("#" + sControlId.toString().replace("tab", "panel") + " div.panel_content_hidden").attr("class", "panel_content");
            }
        }

        function SetImgStyle(sControlId, isOver) {
            if (isOver) {
                $("#" + sControlId.toString().replace("panel", "img")).attr("src", shUrlBase + "Sys/img/point_yellow.png");
            } else {
                $("#" + sControlId.toString().replace("panel", "img")).attr("src", shUrlBase + "Sys/img/point_white.png");
            }
        }

        function SetItemImgStyle(sControlId, isOver) {
            if (isOver) {
                $("#" + sControlId.toString().replace("dv", "img")).attr("src", shUrlBase + "Sys/img/online.png");
                $("#" + sControlId.toString() + " a").css("color", "#FCBA1C");
                $("#" + sControlId.toString() + " a").css("font-weight", "bold");
            } else {
                $("#" + sControlId.toString().replace("dv", "img")).attr("src", shUrlBase + "Sys/img/offline.png");
                $("#" + sControlId.toString() + " a").css("color", "#F4F4BC");
                $("#" + sControlId.toString() + " a").css("font-weight", "normal");
            }
        }

    </script>
    <style type="text/css">
        .Tb_menu_Group
        {
            width: 97%;
            margin: 2px;
            border: 1px solid #C8D2E0;
        }
        .divmenuitemimg
        {
            height: 30px;
            width: 99.8%;
        }
        .divmenuitemfnt
        {
            text-align: center;
            font-size: 11px;
            color: #0099CC;
        } 
        .menu_head
        {
            width: 100%;
            cursor: pointer;
            background: url('/Sys/img/FOL_MENU_TOP.png') no-repeat left top;
            height: 31px;
        }
        .menu_body
        {
            width: 100%;
            background: url('/Sys/img/FOL_MENU_ITEM.png') no-repeat left top;
            height: 25px;
            color: #FAFADE;
            font-weight:bolder;
        }
        .menu_tail
        {
            width: 100%;
            cursor: pointer;
            background: url('/Sys/img/FOL_MENU_BOTTOM.png') no-repeat left bottom;
            height: 11px;
            margin-top: 0px;
        }
        
        .panel_head
        {
            margin-top: 0px;
            width: 100%;
            cursor: pointer;
        }
        .panel_content_hidden
        {
            display: none;
        }
        
        .panel_content
        {
            display: block; /*padding: 10px;
            border-bottom: 1px solid #A5B7DB;
            border-left: 1px solid #A5B7DB;
            border-right: 1px solid #A5B7DB;*/
            margin-top: 0px;
            width: 100%;
            background: url('/Sys/img/FOL_MENU_ITEM.png') no-repeat;
        }
        .content_item
        {
            margin-top: 0px;
            width: 100%;
            background: url('/Sys/img/FOL_MENU_CONTENT.png') no-repeat;
            height: 25px;
            vertical-align: middle;
        }
        .content_item img
        {
            margin-left: 30px;
            vertical-align: middle;
            margin-top: 3px;
        }
        .content_item a
        {
            color: #F4F4BC;
            font-weight: normal;
            font-size: 12px;
            margin-left: 10px;
        }
        .content_item a:hover
        {
            color: #FCBA1C;
            font-weight: bold;
            font-size: 12px;
            margin-left: 10px;
        }
    </style>
</head>
<body style="background: url('/Sys/img/FOL_MENU_BACKGROUND.png') no-repeat -1PX -2px;">
    <form id="form1" runat="server">
    <div id="divMenuSrc" style="text-align: left; padding-top: 2px; padding-left: 0px;
        width: 100%; height: 100%; overflow: auto;"><%=GetMenuHtml()%>
    </div>
    </form>
</body>
</html>
